package com.softeem.yuedong_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 歌单表
 * @TableName musiclist
 */
@TableName(value ="musiclist")
@Schema(title = "歌单信息")
@Data
public class Musiclist implements Serializable {
    /**
     * 歌单id
     */
    @Schema(title = "歌单id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 歌单名
     */
    @Schema(title = "歌单名")
    private String name;

    /**
     * 封面图地址
     */
    @Schema(title = "封面图地址")
    private String url;

    /**
     * 标签
     */
    @Schema(title = "标签")
    private String tags;

    /**
     * 播放量
     */
    @Schema(title = "播放量")
    private Integer playcount;

    /**
     * 歌单简介
     */
    @Schema(title = "歌单简介")
    private String summary;

    /**
     * 用户id
     */
    @Schema(title = "用户id")
    private Integer uid;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}